<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>受理通知书</title>
<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
<script type="text/javascript" charset="utf-8"
	src="<c:url value='/KindEditor/kindeditor.js'/>"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#code").focus();
		$("#noticeDate").addClass("Wate").bind("click", function() {
			WdatePicker({
				skin : 'whyGreen',
				dateFmt : 'yyyy-MM-dd'
			});
		});
		$("#inputForm").validate({
			event : "blur",
			isTip : true
		});
	});
	var date = new Date();
	$.get(
			"${ctx}/business/history/history!info.action?key=${fid}&time="
					+ date, function(data) {
				$("#frame").html(data);
			});
	KE.show({
		id : 'content',
		cssPath : './index.css',
		afterCreate : function(id) {
			KE.event.ctrl(document, 13, function() {
				KE.sync(id);
				document.forms['inputForm'].submit();
			});
			KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
				KE.sync(id);
				document.forms['inputForm'].submit();
			});
		}
	});
	function close() {
		$.window.closeAll();
	}
</script>
</head>
<body>
	<form action="${ctx }/business/appl/notice!submit.action" method="post"
		id="inputForm" class="yform" enctype="multipart/form-data">
		<div id="caption"><h6>填写受理通知书</h6></div>
		<input type="hidden" id="id" name="id" value="${id }">
		 <input
			type="hidden" id="taskId" name="taskId" value="${(empty taskid)?taskId : taskid}"> 
			<input
			type="hidden" name="end" id="end" value="1"> 
			<input
			type="hidden" name="fid" id="fid" value="${fid}">
				<input
			type="hidden" name="projectId" id="projectId" value="${projectId}">
			<input
			type="hidden" name="load" id="load" value="load">
		<input type="hidden" name="status" id="status" value="99">
		<div>
			<table class="noborder">
				<tr class="type-text">
					<td>编号</td>
					<td><input type="text" id="code" name="code" value="${code }" class="required"
						class="required">
					</td>
				</tr>
				<tr class="type-text">
					<td>收文单位</td>
					<td><input type="text" id="orgName" name="orgName"
						value="${orgName }" class="required">
					</td>
				</tr>
				<tr class="type-text">
					<td>抄送单位</td>
					<td><input type="text" id="cc" name="cc" value="${cc }" class="required">
					</td>
				</tr>
				<tr class="type-text">
					<td>通知时间</td>
					<td><input type="text" id="noticeDate" name="noticeDate"
						value='<fmt:formatDate value="${noticeDate }" pattern="yyyy-MM-dd"/>'
						class="required">
					</td>
				</tr>
				<tr class="type-text">
					<td>通知内容</td>
					<td><textarea name="content" id="content" cols="75">${content }</textarea>
					</td>
				</tr>
				<tr class="type-text">
					<td>备注</td>
					<td><textarea name="remark" id="remark">${remark }</textarea>
					</td>
				</tr>
				<tr class="type-text">
					<td>附件资料</td>
					<td><input type="file" name="attachmention.upfile" size="40">
					</td>
				</tr>
			</table>
			</div>
			<div id="caption"><h6>审核记录</h6></div>
		<div id="frame"></div>
		<div id="caption"><h6>填写通知审核意见</h6></div>
			<div>
			<table class="noborder">
				<tr class="type-text">
					<td width="80">审核意见</td>
					<td align="left"><textarea name="view" id="view"  rows="3"></textarea>
					</td>
				</tr>
			</table>
		</div>
		<div class="type-button">
			<input type="submit" class="submit" value="提交">
				<a
				href="javascript:showWindow('查看申请资料','${ctx}/business/appl/petition!input.action?projectId=${projectId}&fid=${fid}&decorator=open&confirm=true')">查看申请书</a>
		</div>
	</form>
</body>
</html>